package com.yulang.springbootnetty.controller;


import com.yulang.springbootnetty.pojo.ChatMsg;
import com.yulang.springbootnetty.service.ChatMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Administrator
 * @since 2020-06-20
 */
@RestController
@RequestMapping("/chatMsg")
public class ChatMsgController {

    @Autowired
    private ChatMsgService service;

    @GetMapping
    public List<ChatMsg> list(){
        return service.list();
    }

}

